package com.ruoyi.business.controller;

import com.ruoyi.business.domain.UserExamQuestion;
import com.ruoyi.business.domain.bo.UserExamQuestionBo;
import com.ruoyi.business.service.IUserExamQuestionService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 最爱喝兽奶
 * @create 2022/8/24
 **/
@RestController
@RequestMapping("/business/userExamQuestion")
public class UserExamQuestionController extends BaseController {

    @Autowired
    private IUserExamQuestionService userExamQuestionService;


    @ApiOperation("提交考试主观题的评分")
    @PostMapping("/submit/evaluation")
    public AjaxResult submitExamSubjectiveQuestionEvaluation(@RequestBody List<UserExamQuestionBo> list) {
        userExamQuestionService.submitExamSubjectiveQuestionEvaluation(list);
        return AjaxResult.success();
    }


}
